﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace server
{
    class protocolchange
    {
        public Dictionary<string, string> cmd2paras(string cmd)
        {
            Dictionary<string, string> paras = new Dictionary<string, string>();
            string[] arryCmd = cmd.Split('&');
            foreach(string para in arryCmd)
            {
                string[] arryPara = para.Split('=');
                paras.Add(arryPara[0], arryPara[1]);
            }
            return paras;
        }
    }
}
